import request from '@/utils/request'

// 查询库存预先盘点单列表
export function listSheet(query) {
  return request({
    url: '/system/PreTakeStockSheet/list',
    method: 'get',
    params: query
  })
}

// 查询库存预先盘点单详细
export function getSheet(id) {
  return request({
    url: '/system/PreTakeStockSheet/' + id,
    method: 'get'
  })
}

// 新增库存预先盘点单
export function addSheet(data) {
  return request({
    url: '/system/PreTakeStockSheet',
    method: 'post',
    data: data
  })
}

// 修改库存预先盘点单
export function updateSheet(data) {
  return request({
    url: '/system/PreTakeStockSheet',
    method: 'put',
    data: data
  })
}

// 删除库存预先盘点单
export function delSheet(id) {
  return request({
    url: '/system/PreTakeStockSheet/' + id,
    method: 'delete'
  })
}
